package track;

import java.util.Random;

public class TriathlonTrack {
	public RunningSection runningSection;
	public CyclingSection cyclingSection;
	public SwimmingSection swimmingSection;
	
	public TriathlonTrack(){
		Random r = new Random();
		this.runningSection = new RunningSection((r.nextInt(300)) + 200);
		this.cyclingSection = new CyclingSection((r.nextInt(300)) + 200);
		this.swimmingSection = new SwimmingSection((r.nextInt(300)) + 200);
	}
	
	public TriathlonTrack(int runningLength, int cyclingLength, int swimmingLength){
		this.runningSection = new RunningSection(runningLength);
		this.cyclingSection = new CyclingSection(cyclingLength);
		this.swimmingSection = new SwimmingSection(swimmingLength);
	}
}
